//停车记录 - 静态 路由
import { http } from "@/utils/http";
import { baseUrlApi } from "../utils";

const basePath = "parking_record/";

const downRequest = (endpoint, data = {}) => {
  return http.request("post", baseUrlApi(basePath + endpoint), {
    data,
    responseType: "blob" // 指定响应类型为 Blob
  });
};

const download = (data: Blob) => downRequest("download", data);

export { download };
